//
//  SSTableView.swift
//  拾舍清洁
//
//  Created by sky.wei on 2023/3/29.
//

import UIKit

class SSBaseTableView: UITableView {
    
    func isHiddenNullView(isHiden:Bool) {
        if isHiden {
            nullView.removeFromSuperview()
        }else{
            addSubview(nullView)
        }
    }
    
    // MARK: - lazy
    public lazy var nullView: SSNullView = {
        let nullView = SSNullView(frame:CGRect(x: 0, y: 0, width: 200, height: 200))
        return nullView
    }()
    
    override func layoutSubviews() {
        super.layoutSubviews()
        nullView.center = CGPoint(x: frame.width/2.0, y: frame.height/2.0)

    }

}
